<template>
  <div class="goods-desc">
    <myheader titleName="图文介绍"></myheader>
    <div>
      <h3 class="desc-title">{{initDatd.title}}</h3>
      <div class="desc-content" v-html='initDatd.content'></div>
    </div>
  </div>
</template>
<script>
import { getDesc } from '@/api'
import myheader from './../../components/myheader'
export default {
  components: {
    myheader
  },
  data () {
    return { initDatd: {} }
  },
  created () {
    getDesc(this.$route.params.id)
      .then(res => {
        console.log(res)
        this.initDatd = res.message[0]
        console.log(this.initDatd)
      })
  }
}
</script>

<style lang="scss" scoped>
  img {
    display: block;
  }

  .goods-desc {
    margin-top: 50px;
    h3 {
      font-weight: bold;
      color: #26a2ff;
      font-size: 16px;
      margin-bottom: 5px;
    }
    .desc-content {
      font-size: 14px;
    }
  }
</style>
